using System;
using Framework;
using UnityEngine;

namespace GameCore
{
    public class SimpleCell : Cell
    {
        public override bool TryPlaceItem(GridItem item)
        {
            if (inventory is null) return false;
            inventory.PlaceItem(gridPos, item);
            return true;
        }

        public override void OnClick()
        {
            inventory?.OnCellClicked(gridPos);
        }
    }
}